Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / TryGetArray Method / TryGetArray<T>(IPdfDict,PdfName,T[],Boolean,Boolean,Boolean) Method
The current dictionary.
The key identifying the array.
OUT: The array of T.
Indicates whether to convert a single T value to an array.
Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

In This Topic
    TryGetArray<T>(IPdfDict,PdfName,T[],Boolean,Boolean,Boolean) Method
    In This Topic
    Tries to gets the array of T objects associated with the specified key.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGetArray(Of T As IPdfObject)( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByRef value() As T, _
       ByVal singleToArray As System.Boolean, _
       ByVal allowNulls As System.Boolean, _
       ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetArray<T>( 
       IPdfDict dict,
       PdfName key,
       out T[] value,
       System.bool singleToArray,
       System.bool allowNulls,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the array.
    value
    OUT: The array of T.
    singleToArray
    Indicates whether to convert a single T value to an array.
    allowNulls
    Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

    Type Parameters

    T

    Return Value

    Returns true if no errors occur.
    See Also